package ouc.pkere.mapper;

import org.apache.ibatis.annotations.Param;
import ouc.pkere.entity.RelationEntity;

import java.util.List;
import java.util.Map;

public interface RelationMapper {

    List<Map<String, String>> findAllValue();

    List<Map<String, String>> findAllAsVisualizeFormat();

    List<Map<String, String>> findByValue1(@Param("value") String value);

    Map<String, String> findOneByValue1(@Param("value") String value);

    void insertBatch(@Param("relationList") List<RelationEntity> relationList);

    Map<String, Object> getValueDetail(@Param("tableName") String tableName, @Param("primaryKey") String primaryKey, @Param("rowIndex") String rowIndex);

    void truncateRelation();

    String getAValueRandomly();
}
